package com.no1.musicmgr.mapper;


import com.no1.musicmgr.entity.Comments;
import io.swagger.v3.oas.annotations.media.Schema;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;

@Mapper
public interface CommentsMapper {

    @Schema(description = "新增评论")
    boolean addComments(Comments comments);

    @Schema(description = "删除评论")
    boolean deleteComments(Integer commentsId);

    @Schema(description = "改写评论")
    boolean updateComment(Comments comments);

    @Schema(description = "查询评论(多查)")
    ArrayList<Comments> listComments(Comments comments);

    @Schema(description = "查询评论(单)")
    Comments selectComments(Comments comments);

    @Schema(description = "查询评论 按音乐ID")
    Comments selectById(Integer commentsId);

}
